From 6cde97e33d4b53f460b1b2fd0940ab99d3edea4e Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Fri, 12 May 2017 11:02:58 +0100 Subject: [PATCH] xl: don't ignore return value from libxl_device_events_handler MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit That function can return a whole slew of error codes. Translate them to EXIT_FAILURE. Signed-off-by: Wei Liu Acked-by: Roger Pau Monné Acked-by: Ian Jackson Release-acked-by: Julien Grall --- tools/xl/xl_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xl/xl_misc.c b/tools/xl/xl_misc.c index 9037e2b2f0..9c6227af23 100644 --- a/tools/xl/xl_misc.c +++ b/tools/xl/xl_misc.c @@ -182,7 +182,7 @@ int main_devd(int argc, char **argv) } } - libxl_device_events_handler(ctx, 0); + ret = libxl_device_events_handler(ctx, 0) ? EXIT_FAILURE : EXIT_SUCCESS; out: return ret; -- 2.30.2